package com.libinyn.base.pms.config.shiro;


import org.apache.shiro.authc.AuthenticationToken;


/**
 * token
 * @fileName: OAuth2Token.java
 * @author: bin.li01
 * @date: 2017/12/16 15:29
 * @version: v1.0.0
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token){
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
